import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter)
export default new VueRouter({
    routes: [{
            path: "/",
            redirect: "/home/pro"
        }, {
            path: "/home",
            redirect: "/home/pro",
            component: () =>
                import ("@/views/home/home.vue"),
            children: [{
                    path: "pro",
                    component: () =>
                        import ("@/components/test-pro/test-pro.vue"),
                    meta: {
                        title: "a"
                    }
                }, {
                    path: "condition",
                    component: () =>
                        import ("@/components/test-condition/test-condition.vue"),
                    meta: {
                        title: "b"
                    }
                },
                {
                    path: "method",
                    component: () =>
                        import ("@/components/test-method/test-method.vue")
                }, {
                    path: "tip",
                    component: () =>
                        import ("@/components/test-tip/test-tip.vue")
                }, {
                    path: "goods",
                    component: () =>
                        import ("@/components/test-goods/test-goods.vue")
                }, {
                    path: "result",
                    component: () =>
                        import ("@/components/test-result/test-result.vue")
                },
                {
                    path: "show",
                    component: () =>
                        import ("@/components/test-show/test-show.vue")
                }
            ]
        },
        {
            path: "/experiment",
            component: () =>
                import ("@/views/experiment/experiment.vue"),
            meta: {
                title: "exe"
            },
            children: [{
                path: "comment",
                component: () =>
                    import ("@/components/Message/Message.vue"),
                meta: {
                    title: "comment"
                }
            }]
        },
        {
            path: "/login",
            component: () =>
                import ("@/views/login/login.vue")
        },
        {
            path: "/register",
            component: () =>
                import ("@/views/register/register.vue")
        }

    ]
})